package com.dc.refactoring._0_入门;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Description: 租赁
 * @author: gdc
 * @date: 2020/11/10
 * @version 1.0
 */
@Data
@Accessors(chain = true)
public class Rental {
    /**
     * 电影
     */
    private Movie movie;
    /**
     * 租用天数
     */
    private int daysRented;


    public double getCharge() {
        return movie.getCharge(daysRented);
    }

    public int getFrequentRenterPoints() {
        return movie.getFrequentRenterPoints(daysRented);
    }
}
